<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
    import Promise from "./index.js";
    // 状态只允许更改一次.
    const p = new Promise(function(resolve,reject){
		// resolve(100);
		// reject(200);
		throw "异常";
    });
	console.log(p);

</script>
</html>